package com.example.demo.controller;

import com.example.demo.vo.UserVO;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DenoController {
    @RequestMapping("/hello")
    //jackson GSON fastjson
    public UserVO hello(){
        UserVO userVO=new UserVO();
        userVO.setName("张san");
        userVO.setAge(18);
        userVO.setAddress("上海");
        userVO.setPhoneNumber(123456);
        return userVO;
    }
}
